﻿using System;
using System.Data;

namespace UserInterface.UserControls
{
    public partial class EmoticonPicker : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                DataSet emoticonsDataSet = new DataSet();
                emoticonsDataSet.ReadXml(Server.MapPath("~/Emoticons.xml"));
                EmoticonsRepeater.DataSource = emoticonsDataSet;
                EmoticonsRepeater.DataBind();
            }
        }
    }
}